// app.js
App({
  onLaunch() {
    // 展示本地存储能力
    const logs = wx.getStorageSync('logs') || []
    logs.unshift(Date.now())
    wx.setStorageSync('logs', logs)
    let user=wx.getStorageSync("userInfo");
    if(user){
        wx.switchTab({
          url: '/pages/home/home',
        })
    }
 
  },
  globalData: {
    appName: "物业管理系统",
    systemInfo: wx.getSystemSetting() || {},
    statusBarHeight: 0,
    customBarHeight: 0,
    userInfo: null,
    // root:"http://localhost:1597/property-management-server",//本地
    root:"https://server.mikuapp.space/property-management-server",//正式
  }
})
